
#import <UIKit/UIKit.h>


@protocol WebIOSDelegate <NSObject>

@optional
-(void)didFinishLoadWeb;

-(void)didFailLoadWebWithErrorMessage:(NSString *)message;

- (BOOL)webView:(UIWebView *)webView shouldLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType;

@end

@interface WebIOS : UIViewController<UIWebViewDelegate>
{
    
}

@property (assign) NSObject<WebIOSDelegate> *delegate;
@property BOOL scalesPageToFit;     //缩放网页至屏幕大小，默认为NO
-(id)initWithFrame:(CGRect)f url:(NSURL *)url;

@property (nonatomic, strong)NSString *string_title;
@property (nonatomic, strong)NSString *type;
@property (nonatomic, assign)int target_id;

@property (nonatomic,strong)UINavigationController *navigationController;

@end
